<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">
    <h:head>
        <title>Ejemplo Combo Cambia Texto</title>
    </h:head>
    <h:body>
        <h:inputText id="nombreFiltro" autocomplete="off" value="#{formBean.nombre}"  >
            <f:ajax render="manufacturerTable" event="keyup" listener="#{formBean.nombreChangeListener}"/>
        </h:inputText>
        <h:dataTable value="#{formBean.listByName}" border="1" var="item" id="manufacturerTable">
            <h:column>
                <f:facet name="header">
                    ID                    
                </f:facet>
                <h:outputText value="#{item.manufacturerId}" />
            </h:column>
            <h:column>
                <f:facet name="header">
                    Nombre                    
                </f:facet>
                <h:outputText value="#{item.name}" />
            </h:column>
            <h:column>
                <f:facet name="header">
                    e-mail                    
                </f:facet>
                <h:outputText value="#{item.email}" />
            </h:column>
        </h:dataTable>
    </h:body>
</html>